<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>Gallery</title>
<style>
#gallery{list-style:none;width:800px;background:#cecece;height:1000px;overflow:auto;padding:10px 30px;}
#gallery li{float:left;margin-right:10px;margin-top:10px;position:relative}
#gallery li .info{display:none;position:absolute;
left:-10px;top:-10px;
background-color:white;
-moz-border-radius:3px;
-webkit-border-radius:3px;
border-radius:3px;
padding-top:210px;
width:240px;
}
#gallery li img{filter:alpha(opacity=30);opacity:0.3;position:relative;}
#gallery li:hover{z-index:99;}
#gallery li:hover .info{display:block;}
#gallery li:hover img{filter:alpha(opacity=100);opacity:1;z-index:999;}
#gallery li p,#gallery li h2{margin:10px;}
</style>
</head>

<body>
<ul id="gallery">
	<li>
		<a href="#"><img border="0" src="../images/car.jpg" /></a>
		<div class="info">
			<h2>This is a demo.</h2>
			<p>this is a car<br /> and a sample.</p>
		</div>
	</li>
	<li>
		<a href="#"><img border="0" src="../images/car.jpg" /></a>
		<div class="info">
			<h2>This is a demo.</h2>
			<p>this is a car<br /> and a sample.</p>
		</div>
	</li>
	<li>
		<a href="#"><img border="0" src="../images/car.jpg" /></a>
		<div class="info">
			<h2>This is a demo.</h2>
			<p>this is a car<br /> and a sample.</p>
		</div>
	</li>
	<li>
		<a href="#"><img border="0" src="../images/car.jpg" /></a>
		<div class="info">
			<h2>This is a demo.</h2>
			<p>this is a car<br /> and a sample.</p>
		</div>
	</li>
	<li>
		<a href="#"><img border="0" src="../images/car.jpg" /></a>
		<div class="info">
			<h2>This is a demo.</h2>
			<p>this is a car<br /> and a sample.</p>
		</div>
	</li>
	<li>
		<a href="#"><img border="0" src="../images/car.jpg" /></a>
		<div class="info">
			<h2>This is a demo.</h2>
			<p>this is a car<br /> and a sample.</p>
		</div>
	</li>
</ul>
</body>
</html>
